package com.ziyun.pop.modules.order.operate;

import io.renren.common.utils.R;

/**
 * 门店订单状态环境
 * @author gaosheng
 * @date 2018-09-25 13:12
 */
public class ErpOrderStateContext {

    ErpOrderState erpOrderState;

    /**
     * 紫云外协名称
     */
    public static String ZIYUN_SUPP_NAME = "中浩紫云";

    /**
     * 订单分配参数
     */
    AllotStateEntity allotStateEntity;

    public ErpOrderStateContext(ErpOrderState erpOrderState){
        this.erpOrderState = erpOrderState;
    }

    public ErpOrderStateContext(ErpOrderState erpOrderState, AllotStateEntity allotStateEntity){
        this (erpOrderState);
        this.allotStateEntity = allotStateEntity;
    }

    /**
     * 打印生产单
     * @return
     */
    public R printProduction(){
        return erpOrderState.printProduction();
    }

    /**
     * 再次添加产品
     * @return
     */
    public R addProducts(){
        return erpOrderState.addProducts();
    }

    /**
     * 生产完成
     * @return
     */
    public R productionCompletion(){
        return erpOrderState.productionCompletion();
    }

    /**
     * 收银结算
     * @return
     */
    public R receviceMoney(){
        return erpOrderState.receviceMoney();
    }

    /**
     * 打印结算单
     * @return
     */
    public R printBalance(){
        return erpOrderState.printBalance();
    }

    /**
     * 取消订单
     * @return
     */
    public R orderCancle(){
        return erpOrderState.orderCancle();
    }

    /**
     * 订单修改
     * @return
     */
    public R orderEdit(){
        return erpOrderState.orderEdit();
    }

    /**
     * 订单撤回
     * @return
     */
    public R orderRecall(){
        return erpOrderState.orderRecall();
    }

    /**
     * 紫云网订单撤回
     * @return
     */
    public R ziyunOrderBack(){
        return erpOrderState.ziyunOrderBack();
    }

    /**
     * 支付方式修改
     * @return
     */
    public R updatePayType(){
        return erpOrderState.updatePayType();
    }

    /**
     * 添加外协商
     * @return
     */
    public R addSupplier() {
        return erpOrderState.addSupplier();
    }

}
